package stu.kurs.services;

import java.util.Date;
import java.util.List;
import javax.ejb.Remote;

import stu.kurs.domain.Match;
import stu.kurs.exceptions.ServiceException;
import stu.kurs.services.IGenericService;


@Remote
public interface IMatchService extends IGenericService<Match> {
	
	public void add(String team1, String team2, Date date, Integer scoreteam1, Integer scoreteam2, 
			Double koefteam1, Double koefteam2,	Integer idcategory) throws ServiceException;

	public void update(Integer id, String team1, String team2,  Integer scoreteam1, Integer scoreteam2, 
			Double koefteam1, Double koefteam2, Date date) throws ServiceException;
	
	public void delete(Integer id) throws ServiceException;
	public void changeScore(Integer scoreteam1, Integer scoreteam2, Integer id) throws ServiceException;
	public void changeKoef(Double koefteam1, Double koefteam2, Integer id) throws ServiceException;
	public void changeDate(Date date, Integer id) throws ServiceException;
	public List<Match> findByDates(Date start, Date end, Integer idcategory) throws ServiceException;
	public List<Match> getAllByCategoryId(Integer idcategory) throws ServiceException;
	public List<Match> getAllMatch()	throws ServiceException;
	public List<Match> getMatchByDates(Date start, Date end) throws ServiceException;
	
}
